package Lab02.test35;

/**
 * Created by Administrator on 2017/11/14.
 */

class Salesman extends Employee{
    double baseSalary;
    int quantity;
    double commision;
    public Salesman(String name,double baseSalary,int quantity,double commision){
        super(name);
        this.baseSalary=baseSalary;
        this.quantity=quantity;
        this.commision=commision;

    }
    public double computeSalary(){
        return baseSalary+quantity*commision;

    }

}
